
include_directories( ${CMAKE_SOURCE_DIR}/kresources/scalix/shared  )


########### next target ###############

set(kcalscalix_LIB_SRCS ${libresourcescalixshared_SRCS}
   resourcescalix.cpp )

#kde4_add_dcop_skels(kcalscalix_LIB_SRCS
#    ${CMAKE_SOURCE_DIR}/kresources/scalix/shared/kmailconnection.h
#    )


QT4_ADD_DBUS_INTERFACE2( kcalscalix_LIB_SRCS ${CMAKE_SOURCE_DIR}/kmail/org.kde.kmail.groupware.xml kmail_groupwareinterface groupware_types.h )




kde4_add_library(kcalscalix SHARED ${kcalscalix_LIB_SRCS})

target_link_libraries(kcalscalix  ${KDE4_KDECORE_LIBS} ${KDEPIMLIBS_KRESOURCES_LIBS} ${KDEPIMLIBS_KCAL_LIBS} kdepim kgroupwarebase)
target_link_libraries(kcalscalix  LINK_INTERFACE_LIBRARIES ${KDEPIMLIBS_KRESOURCES_LIBS} ${KDEPIMLIBS_KCAL_LIBS})

set_target_properties(kcalscalix
   PROPERTIES VERSION ${GENERIC_LIB_VERSION} SOVERSION ${GENERIC_LIB_SOVERSION}
)
install(TARGETS kcalscalix ${INSTALL_TARGETS_DEFAULT_ARGS})


########### next target ###############

set(kcal_scalix_PART_SRCS resourcescalix_plugin.cpp )


kde4_add_plugin(kcal_scalix ${kcal_scalix_PART_SRCS})



target_link_libraries(kcal_scalix  ${KDE4_KDECORE_LIBS} kcalscalix )

install(TARGETS kcal_scalix  DESTINATION ${PLUGIN_INSTALL_DIR})


########### install files ###############

install( FILES scalix.desktop  DESTINATION ${SERVICES_INSTALL_DIR}/kresources/kcal)


